package com.android.hedgehog;

import android.app.Application;

import com.scoreloop.client.android.core.model.Client;

public class TypicalApplication extends Application {

	public static final String EXTRA_USER_ID = "userId";
	/**
	 * This is the game's Application class, specified in the android:name
	 * attribute in AndroidManifest.xml. It is the preferred place to initialize
	 * your Scoreloop Client instance.
	 */

	public void onCreate() {
		// This is our game secret
		// you receive the one for your game after registering it at
		// https://developer.scoreloop.comv
		// please note that your Game ID has to be in the scoreloop.properties
		// file
		final String secret = 
				"h9bMaUVp".replace("b", "avc")
				.concat("0rlwnR").concat("n").concat("uhbn(has".charAt(3) + "n")
				.concat("0nrWNeEM5/lg8qu")
				.concat("DFy5KgBFC0yFG7yOMFNDsF06g".replace("F", ""))
				.concat("==");	

		// if possible, you should make some effort to protect the secret
		// from being extracted from your application, for example by splitting
		// it up into multiple chunks that get concatenated at runtime.
		// see ScoreloopCoreDemoTypical for an example.

		// initialize the client using the context and game secret
		Client.init(this, secret, null);
	}

}
